<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" media="all" />
	<style type="text/css">
		#container{
			margin-top:50px;
		}
		#condiv{
			position:relative;
		}
		#hrefdiv{
			left:5px;
			bottom:5px;
			position:absolute;
		}
	</style>
</head>
<body>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a href="#" class="brand" style="color:#fff">凯盛项目管理系统</a>
			</div>
		</div>
	</div>
	<div class="container" id="container">
		<div class="row">
			<div class="span3">
				<div class="well" style="padding:8px 0;">
					<ul class="nav nav-list">
						<li class="nav-header" style="padding-top:0px">新Apple总部项目</li>
						<li class="divider"></li>
						<li ><a href="#"><i class="icon-white icon-home"></i>最新动态</a></li>
						<li><a href="goal.html"><i class="icon-flag"></i>目标</a></li>
						<li><a href="#"><i class="icon-folder-open"></i>资料库</a></li>
						<li class="active"><a href="#"><i class="icon-file"></i>文件共享</a></li>
						<li><a href="#"><i class="icon-user"></i>联系人</a></li>
						<li ><a href="#"><i class="icon-fire"></i>想法</a></li>
						<li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
						<li><a href="#"><i class="icon-cog"></i>项目设置</a></li>
					</ul>
				</div>
			</div>
			<div class="span9">
				<a href="project.jspx?m=upload&id=${id }" class="btn btn-primary" style="float:right;"><i class="icon-white icon-share"></i>上传资料</a><br /><br />
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius:3px 3px 0 0">
					<li><a href="#" style="color:#333"><i class="icon-th"></i>文件共享>${list[0].documentname }</a></li>
				</ul>
				<div class="wall" id="condiv" style="border:1px solid #ccc;height:400px;border-top:none;padding:15px">
					<c:if test="${empty list }">
						您还有上传资料哦！
					</c:if>
					<c:if test="${!empty list }">
					<table class="table table-striped">
						<thead>
							<tr>
								<th width="10%"></th>
								<th width="50%">名称</th>
								<th width="20%">大小</th>
								<th >创建人</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${list }" var="file">
								<tr>
									<td><img src="img/file.png"></td>
									<td><a href="project.jspx?m=download&f=${file.filename }">${file.name }</a></td>
									
									<td>${file.filesize }</td>
									
									
									<td>${file.employee.username }</td>
									<td><a href="project.jspx?m=deleteFile&id=${file.id }&filetypeid=${file.filetypeid}"><i class="icon-trash"></i></a></td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
					</c:if>
					<div id="hrefdiv"><a href="project.jspx?m=share">←返回文件共享列表</a></div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>